/**
 * åç´ åå®¹ï¼ä¸é¢bodyåï¼æ¾å¨çé¢ï¼
 * <div class="overimg" ></div>
	    <div class="imgclickBig">
	    <div class="glyphicon glyphicon-remove-circle img-close"></div>
        <img alt="">
   </div>
 */



/**
 * å¼å¥çcssæä»¶
 * .overimg{
     position: absolute;
     left:0px;
     top:0px;
     width:100%;
     height:100%;
     opacity: 0.5;
     background: black;
     z-index: 100;
     display: none;


 }
 .imgclickBig{
     position: absolute;
     z-index: 101;
     padding:10px;
     left:50%;
     top:50%;
     transform: translate(-50%, -50%);
     display: none;
     border: 2px gray solid;
     border-radius:10px;
     background: white;
 }

 .imgclickBig img{
     border:none;
     width:100%;
     height:100%;
 }
 
 .img-close{
     display:none; 
	 position: absolute;
	 top:-4%;
	 right:-6%;
	 font-size: 20px;
	 color: red;
	 z-index: 102;
	 transform: translate(-50%, -50%);
	 cursor: pointer;
 }
 */



/**
 * å¼å¥çjsæä»¶
 * ç¹å»å¾çæ¾å¤§æ¥ç
 * ä¾é jsæ§å¶
 */
 //var imgTop=parseInt($(".imgclickBig").css("top"));
 $("body").on("click",".imgclick",function(){
	 alert();
	 var ducumentHeight=parseInt($(document).height());//è·åææ¡£é«åº¦
	 var srcollTop=parseInt(getScrollTop());//è·åæ»å¨æ¡è·ç¦»é¡¶ç«¯çè·ç¦»
	 $(".overimg").css("height",ducumentHeight+srcollTop+"px")
     $(".overimg").show();
	 $(".imgclickBig").css("top",srcollTop+500+"px");
     $(".imgclickBig").show();
     $(".img-close").show();
     var value=$(this).attr("src");
     $(".imgclickBig img").attr("src",value);
 })

$("body").on("click",".overimg",function(){
     $(".imgclickBig").hide();
     $(".img-close").hide();
     $(this).hide();
})

$("body").bind("click",".img-close",function(){
	$(".imgclickBig").hide();
	$(".overimg").hide();
    $(this).hide();
})


/** 
 * è·åæ»å¨æ¡è·ç¦»é¡¶ç«¯çè·ç¦» 
 * @return {}æ¯æIE6 
 */  
function getScrollTop() {  
        var scrollPos;  
        if (window.pageYOffset) {  
        scrollPos = window.pageYOffset; }  
        else if (document.compatMode && document.compatMode != 'BackCompat')  
        { scrollPos = document.documentElement.scrollTop; }  
        else if (document.body) { scrollPos = document.body.scrollTop; }   
        return scrollPos;   
}  
 
/*$(window).scroll(function() {  
     var yheight1=window.pageYOffset; //æ»å¨æ¡è·é¡¶ç«¯çè·ç¦»  
     var yheight=getScrollTop(); //æ»å¨æ¡è·é¡¶ç«¯çè·ç¦»  
     var height =document.documentElement.clientHeight//æµè§å¨å¯è§åçªå£çå¤§å°  
     var top=parseInt(yheight)+parseInt(height)-217;  
     var divobj=$(".kf");  
     divobj.attr('style','top:'+top+'px;');  
 }) */ 
/**
 * ç¹å»åå°é¡µé¢é¡¶é¨
 */
function backTop(){
	  //$("html,body").animate({scrollTop:0}, 500);
}
 
/**
 * é¡µé¢ç¦»é¡¶ç«¯çè·ç¦»
 */
$(window).scroll(function() { 
	//console.info($(window).scrollTop()); 
});  

/**
 * æååæ¹æ³ï¼ä¾é cssæ§å¶
 */
/*$(".imgclick").bind("click",function(){
	$(this).delay();
    $(".overimg").show();
    $(".imgclickBig").show();
    $(".img-close").show();
    var value=$(this).attr("src");
    $(".imgclickBig img").attr("src",value);
})

  $(".overimg").bind("click",function(){
       $(".imgclickBig").hide();
       $(this).hide();
       $(".img-close").hide();
  })

  $(".img-close").bind("click",function(){
	  $(".imgclickBig").hide();
	  $(".overimg").hide();
      $(this).hide();
  })*/

